package com.authine.cloudpivot.ext.utils;

/**
 * @author Adam.yao
 * @date 2017/10/25
 */
public class SystemConstants {

    public static final int SUCCESS = 0;
    public static final int FAILED = -1;

    public static final int MAX_SIZE = 1000000;

    public static final String SUCCESS_MSG = "成功";
    public static final String FAILED_MSG = "失败";
    /* public class InquiryMsg {
         public static final String department_error = "部门选择不正确";
         public static final String goods_num_error = "商品数量不能小于或等于0";
         public static final String no_right = "您没有权利操作";
         public static final String submit_success = "提交成功";
         public static final String submit_error = "提交失败";
         public static final String save_success = "保存成功";
         public static final String save_error = "保存失败";
         public static final String remove_success = "删除成功";
         public static final String remove_error = "删除失败";
         public static final String update_success = "修改成功";
         public static final String update_error = "修改失败";
         public static final String get_error = "未get到你的信息";
         public static final String goods_not_found_error = "请添加商品";
         public static final String cancel_success = "取消成功";
         public static final String cancel_error = "取消失败";
         public static final String quote_freight_limit_error = "运费输入不正确";
         public static final String null_error = "请输入必填项";
         public static final String quote_min_time_strategy_error = "报价最小时间不能小于30天";
         public static final String web_error = "页面异常,请重新操作";
         public static final String expire_error = "询价截止日期不能小于等于当前时间";
         public static final String package_num_error = "包装商品数量不能小于或等于0";
         public static final String category_null_error = "请选择平台类目";
     }*/
    public static final String IMPORT_UNDER_WAY = "正在导入";
    public static final String IMPORT_SUSCESS = "导入成功";
    public static final String IMPORT_FAILD = "导入失败";
    public static final String IMPORT = "import";
    public static final String CORE_IMPORT = "coreImport";
    public static final String CREATE_ORDER = "createOrder";

    public static boolean isSuccess(int code) {
        return code >= SUCCESS;
    }

    public class CacheName {
        public static final String RESOURCE = "resource";
        public static final String MEMBER_ROLE = "memberRole";
        public static final String ORGANIZATION = "organization";
        public static final String DEPARTMENT = "department";
        public static final String MEMBER = "member";
        public static final String ORGANIZATION_ACCOUNT = "organizationAccount";
        public static final String GET_PLATFORM_RATE = "getPlatformRate";

        public static final String COUNTMAININFO = "countMainInfo";
        public static final String MAININQUIRYPICKETAGECOUNT = "mainInquiryPicketageCount";
        public static final String MAINMESSAGE = "mainMessage";
        public static final String QUERYCONT = "queryCont";

        public static final String INQUIRY = "inquiry";
        /**
         * 询价次数
         */
        public static final String INQUIRY_COUNT = "inquiryCount";
        /**
         * 定标次数
         */
        public static final String PICKETAGE_COUNT = "picketageCount";
        /**
         * 报价次数
         */
        public static final String QUOTATION_COUNT = "quotationCount";
        /**
         * 订单数量
         */
        public static final String ORDERS_COUNT = "ordersCount";
        /**
         * 首页看板 订单金额
         */
        public static final String ORDER_AMOUNT = "orderAmount";
        /**
         * 首页看板 当天数量统计, 获取当天所有数量统计, 当前使用此方式
         */
        public static final String TODAY_COUNT = "todayCount";
        /**
         * 订单商品数量
         */
        public static final String ORDERGOODS_COUNT = "orderGoodsCount";
        /**
         * 首页顶部昨日与今日统计
         */
        public static final String TOP_ALL = "top_all";
        /**
         * 首页看板 比率统计所需数据
         */
        public static final String RATE = "rate";
        /**
         * 首页看板 全部类型数据
         */
        public static final String ALL = "all";

        public static final String BACKCOUNT = "backCount";
        public static final String NOPICKETCOUNT = "nopicketCount";
        public static final String NOIORDERCOUNT = "noIOrderCount";
        public static final String NODELIVERCOUNT = "noDeliverCount";
        public static final String NORECEIVECOUNT = "noReceiveCount";
        public static final String NORECONCILIATIONCOUNT = "noReconciliationCount";
        public static final String NOINVOICECOUNT = "noInvoiceCount";
        public static final String NOPAYMENTCOUNT = "noPaymentCount";
        public static final String NOCANPAYCOUNT = "noCanpayCount";
        public static final String DEMANDTOINQUIRY = "demandToInquiry";
        public static final String LISTGOODSTAXRATE = "listGoodsTaxRate";
        public static final String ISENABLEDATTRIBUTE = "isEnabledAttribute";
        public static final String GETGOODSTAXRATEONE = "getGoodsTaxRateOne";
        public static final String LIST_MEMBER_USERNAMES = "LIST_MEMBER_USERNAMES";
        public static final String DAILY_SUMMARY = "DAILY_SUMMARY";
        public static final String DELIVER_INFO_V1 = "deliverInfoV1";
        public static final String LIST_FEE_ORGANIZATION = "listFeeOrganization";
        public static final String LIST_BUSINESS_MEMBER_ID = "listBusinessMemberId";
    }

}
